package com.rc.evcharger.model.discount;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TenantDiscountPolicyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TenantDiscountPolicyExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDiscountPolicyIdIsNull() {
            addCriterion("discount_policy_id is null");
            return (Criteria) this;
        }

        public Criteria andDiscountPolicyIdIsNotNull() {
            addCriterion("discount_policy_id is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountPolicyIdEqualTo(Long value) {
            addCriterion("discount_policy_id =", value, "discountPolicyId");
            return (Criteria) this;
        }

        public Criteria andDiscountPolicyIdNotEqualTo(Long value) {
            addCriterion("discount_policy_id <>", value, "discountPolicyId");
            return (Criteria) this;
        }

        public Criteria andDiscountPolicyIdGreaterThan(Long value) {
            addCriterion("discount_policy_id >", value, "discountPolicyId");
            return (Criteria) this;
        }

        public Criteria andDiscountPolicyIdGreaterThanOrEqualTo(Long value) {
            addCriterion("discount_policy_id >=", value, "discountPolicyId");
            return (Criteria) this;
        }

        public Criteria andDiscountPolicyIdLessThan(Long value) {
            addCriterion("discount_policy_id <", value, "discountPolicyId");
            return (Criteria) this;
        }

        public Criteria andDiscountPolicyIdLessThanOrEqualTo(Long value) {
            addCriterion("discount_policy_id <=", value, "discountPolicyId");
            return (Criteria) this;
        }

        public Criteria andDiscountPolicyIdIn(List<Long> values) {
            addCriterion("discount_policy_id in", values, "discountPolicyId");
            return (Criteria) this;
        }

        public Criteria andDiscountPolicyIdNotIn(List<Long> values) {
            addCriterion("discount_policy_id not in", values, "discountPolicyId");
            return (Criteria) this;
        }

        public Criteria andDiscountPolicyIdBetween(Long value1, Long value2) {
            addCriterion("discount_policy_id between", value1, value2, "discountPolicyId");
            return (Criteria) this;
        }

        public Criteria andDiscountPolicyIdNotBetween(Long value1, Long value2) {
            addCriterion("discount_policy_id not between", value1, value2, "discountPolicyId");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIsNull() {
            addCriterion("tenant_code is null");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIsNotNull() {
            addCriterion("tenant_code is not null");
            return (Criteria) this;
        }

        public Criteria andTenantCodeEqualTo(String value) {
            addCriterion("tenant_code =", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotEqualTo(String value) {
            addCriterion("tenant_code <>", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeGreaterThan(String value) {
            addCriterion("tenant_code >", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeGreaterThanOrEqualTo(String value) {
            addCriterion("tenant_code >=", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLessThan(String value) {
            addCriterion("tenant_code <", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLessThanOrEqualTo(String value) {
            addCriterion("tenant_code <=", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLike(String value) {
            addCriterion("tenant_code like", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotLike(String value) {
            addCriterion("tenant_code not like", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIn(List<String> values) {
            addCriterion("tenant_code in", values, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotIn(List<String> values) {
            addCriterion("tenant_code not in", values, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeBetween(String value1, String value2) {
            addCriterion("tenant_code between", value1, value2, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotBetween(String value1, String value2) {
            addCriterion("tenant_code not between", value1, value2, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andPolicyNameIsNull() {
            addCriterion("policy_name is null");
            return (Criteria) this;
        }

        public Criteria andPolicyNameIsNotNull() {
            addCriterion("policy_name is not null");
            return (Criteria) this;
        }

        public Criteria andPolicyNameEqualTo(String value) {
            addCriterion("policy_name =", value, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyNameNotEqualTo(String value) {
            addCriterion("policy_name <>", value, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyNameGreaterThan(String value) {
            addCriterion("policy_name >", value, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyNameGreaterThanOrEqualTo(String value) {
            addCriterion("policy_name >=", value, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyNameLessThan(String value) {
            addCriterion("policy_name <", value, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyNameLessThanOrEqualTo(String value) {
            addCriterion("policy_name <=", value, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyNameLike(String value) {
            addCriterion("policy_name like", value, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyNameNotLike(String value) {
            addCriterion("policy_name not like", value, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyNameIn(List<String> values) {
            addCriterion("policy_name in", values, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyNameNotIn(List<String> values) {
            addCriterion("policy_name not in", values, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyNameBetween(String value1, String value2) {
            addCriterion("policy_name between", value1, value2, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyNameNotBetween(String value1, String value2) {
            addCriterion("policy_name not between", value1, value2, "policyName");
            return (Criteria) this;
        }

        public Criteria andPolicyDescIsNull() {
            addCriterion("policy_desc is null");
            return (Criteria) this;
        }

        public Criteria andPolicyDescIsNotNull() {
            addCriterion("policy_desc is not null");
            return (Criteria) this;
        }

        public Criteria andPolicyDescEqualTo(String value) {
            addCriterion("policy_desc =", value, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andPolicyDescNotEqualTo(String value) {
            addCriterion("policy_desc <>", value, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andPolicyDescGreaterThan(String value) {
            addCriterion("policy_desc >", value, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andPolicyDescGreaterThanOrEqualTo(String value) {
            addCriterion("policy_desc >=", value, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andPolicyDescLessThan(String value) {
            addCriterion("policy_desc <", value, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andPolicyDescLessThanOrEqualTo(String value) {
            addCriterion("policy_desc <=", value, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andPolicyDescLike(String value) {
            addCriterion("policy_desc like", value, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andPolicyDescNotLike(String value) {
            addCriterion("policy_desc not like", value, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andPolicyDescIn(List<String> values) {
            addCriterion("policy_desc in", values, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andPolicyDescNotIn(List<String> values) {
            addCriterion("policy_desc not in", values, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andPolicyDescBetween(String value1, String value2) {
            addCriterion("policy_desc between", value1, value2, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andPolicyDescNotBetween(String value1, String value2) {
            addCriterion("policy_desc not between", value1, value2, "policyDesc");
            return (Criteria) this;
        }

        public Criteria andElecStationIdIsNull() {
            addCriterion("elec_station_id is null");
            return (Criteria) this;
        }

        public Criteria andElecStationIdIsNotNull() {
            addCriterion("elec_station_id is not null");
            return (Criteria) this;
        }

        public Criteria andElecStationIdEqualTo(Long value) {
            addCriterion("elec_station_id =", value, "elecStationId");
            return (Criteria) this;
        }

        public Criteria andElecStationIdNotEqualTo(Long value) {
            addCriterion("elec_station_id <>", value, "elecStationId");
            return (Criteria) this;
        }

        public Criteria andElecStationIdGreaterThan(Long value) {
            addCriterion("elec_station_id >", value, "elecStationId");
            return (Criteria) this;
        }

        public Criteria andElecStationIdGreaterThanOrEqualTo(Long value) {
            addCriterion("elec_station_id >=", value, "elecStationId");
            return (Criteria) this;
        }

        public Criteria andElecStationIdLessThan(Long value) {
            addCriterion("elec_station_id <", value, "elecStationId");
            return (Criteria) this;
        }

        public Criteria andElecStationIdLessThanOrEqualTo(Long value) {
            addCriterion("elec_station_id <=", value, "elecStationId");
            return (Criteria) this;
        }

        public Criteria andElecStationIdIn(List<Long> values) {
            addCriterion("elec_station_id in", values, "elecStationId");
            return (Criteria) this;
        }

        public Criteria andElecStationIdNotIn(List<Long> values) {
            addCriterion("elec_station_id not in", values, "elecStationId");
            return (Criteria) this;
        }

        public Criteria andElecStationIdBetween(Long value1, Long value2) {
            addCriterion("elec_station_id between", value1, value2, "elecStationId");
            return (Criteria) this;
        }

        public Criteria andElecStationIdNotBetween(Long value1, Long value2) {
            addCriterion("elec_station_id not between", value1, value2, "elecStationId");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeIsNull() {
            addCriterion("discount_type is null");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeIsNotNull() {
            addCriterion("discount_type is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeEqualTo(String value) {
            addCriterion("discount_type =", value, "discountType");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeNotEqualTo(String value) {
            addCriterion("discount_type <>", value, "discountType");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeGreaterThan(String value) {
            addCriterion("discount_type >", value, "discountType");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeGreaterThanOrEqualTo(String value) {
            addCriterion("discount_type >=", value, "discountType");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeLessThan(String value) {
            addCriterion("discount_type <", value, "discountType");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeLessThanOrEqualTo(String value) {
            addCriterion("discount_type <=", value, "discountType");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeLike(String value) {
            addCriterion("discount_type like", value, "discountType");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeNotLike(String value) {
            addCriterion("discount_type not like", value, "discountType");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeIn(List<String> values) {
            addCriterion("discount_type in", values, "discountType");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeNotIn(List<String> values) {
            addCriterion("discount_type not in", values, "discountType");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeBetween(String value1, String value2) {
            addCriterion("discount_type between", value1, value2, "discountType");
            return (Criteria) this;
        }

        public Criteria andDiscountTypeNotBetween(String value1, String value2) {
            addCriterion("discount_type not between", value1, value2, "discountType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeIsNull() {
            addCriterion("policy_member_type is null");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeIsNotNull() {
            addCriterion("policy_member_type is not null");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeEqualTo(String value) {
            addCriterion("policy_member_type =", value, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeNotEqualTo(String value) {
            addCriterion("policy_member_type <>", value, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeGreaterThan(String value) {
            addCriterion("policy_member_type >", value, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeGreaterThanOrEqualTo(String value) {
            addCriterion("policy_member_type >=", value, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeLessThan(String value) {
            addCriterion("policy_member_type <", value, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeLessThanOrEqualTo(String value) {
            addCriterion("policy_member_type <=", value, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeLike(String value) {
            addCriterion("policy_member_type like", value, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeNotLike(String value) {
            addCriterion("policy_member_type not like", value, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeIn(List<String> values) {
            addCriterion("policy_member_type in", values, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeNotIn(List<String> values) {
            addCriterion("policy_member_type not in", values, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeBetween(String value1, String value2) {
            addCriterion("policy_member_type between", value1, value2, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andPolicyMemberTypeNotBetween(String value1, String value2) {
            addCriterion("policy_member_type not between", value1, value2, "policyMemberType");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdIsNull() {
            addCriterion("enterprise_member_id is null");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdIsNotNull() {
            addCriterion("enterprise_member_id is not null");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdEqualTo(Long value) {
            addCriterion("enterprise_member_id =", value, "enterpriseMemberId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdNotEqualTo(Long value) {
            addCriterion("enterprise_member_id <>", value, "enterpriseMemberId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdGreaterThan(Long value) {
            addCriterion("enterprise_member_id >", value, "enterpriseMemberId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdGreaterThanOrEqualTo(Long value) {
            addCriterion("enterprise_member_id >=", value, "enterpriseMemberId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdLessThan(Long value) {
            addCriterion("enterprise_member_id <", value, "enterpriseMemberId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdLessThanOrEqualTo(Long value) {
            addCriterion("enterprise_member_id <=", value, "enterpriseMemberId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdIn(List<Long> values) {
            addCriterion("enterprise_member_id in", values, "enterpriseMemberId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdNotIn(List<Long> values) {
            addCriterion("enterprise_member_id not in", values, "enterpriseMemberId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdBetween(Long value1, Long value2) {
            addCriterion("enterprise_member_id between", value1, value2, "enterpriseMemberId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseMemberIdNotBetween(Long value1, Long value2) {
            addCriterion("enterprise_member_id not between", value1, value2, "enterpriseMemberId");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdIsNull() {
            addCriterion("hlht_member_id is null");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdIsNotNull() {
            addCriterion("hlht_member_id is not null");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdEqualTo(Long value) {
            addCriterion("hlht_member_id =", value, "hlhtMemberId");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdNotEqualTo(Long value) {
            addCriterion("hlht_member_id <>", value, "hlhtMemberId");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdGreaterThan(Long value) {
            addCriterion("hlht_member_id >", value, "hlhtMemberId");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdGreaterThanOrEqualTo(Long value) {
            addCriterion("hlht_member_id >=", value, "hlhtMemberId");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdLessThan(Long value) {
            addCriterion("hlht_member_id <", value, "hlhtMemberId");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdLessThanOrEqualTo(Long value) {
            addCriterion("hlht_member_id <=", value, "hlhtMemberId");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdIn(List<Long> values) {
            addCriterion("hlht_member_id in", values, "hlhtMemberId");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdNotIn(List<Long> values) {
            addCriterion("hlht_member_id not in", values, "hlhtMemberId");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdBetween(Long value1, Long value2) {
            addCriterion("hlht_member_id between", value1, value2, "hlhtMemberId");
            return (Criteria) this;
        }

        public Criteria andHlhtMemberIdNotBetween(Long value1, Long value2) {
            addCriterion("hlht_member_id not between", value1, value2, "hlhtMemberId");
            return (Criteria) this;
        }

        public Criteria andTimeTypeIsNull() {
            addCriterion("time_type is null");
            return (Criteria) this;
        }

        public Criteria andTimeTypeIsNotNull() {
            addCriterion("time_type is not null");
            return (Criteria) this;
        }

        public Criteria andTimeTypeEqualTo(Integer value) {
            addCriterion("time_type =", value, "timeType");
            return (Criteria) this;
        }

        public Criteria andTimeTypeNotEqualTo(Integer value) {
            addCriterion("time_type <>", value, "timeType");
            return (Criteria) this;
        }

        public Criteria andTimeTypeGreaterThan(Integer value) {
            addCriterion("time_type >", value, "timeType");
            return (Criteria) this;
        }

        public Criteria andTimeTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("time_type >=", value, "timeType");
            return (Criteria) this;
        }

        public Criteria andTimeTypeLessThan(Integer value) {
            addCriterion("time_type <", value, "timeType");
            return (Criteria) this;
        }

        public Criteria andTimeTypeLessThanOrEqualTo(Integer value) {
            addCriterion("time_type <=", value, "timeType");
            return (Criteria) this;
        }

        public Criteria andTimeTypeIn(List<Integer> values) {
            addCriterion("time_type in", values, "timeType");
            return (Criteria) this;
        }

        public Criteria andTimeTypeNotIn(List<Integer> values) {
            addCriterion("time_type not in", values, "timeType");
            return (Criteria) this;
        }

        public Criteria andTimeTypeBetween(Integer value1, Integer value2) {
            addCriterion("time_type between", value1, value2, "timeType");
            return (Criteria) this;
        }

        public Criteria andTimeTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("time_type not between", value1, value2, "timeType");
            return (Criteria) this;
        }

        public Criteria andBeginTimeIsNull() {
            addCriterion("begin_time is null");
            return (Criteria) this;
        }

        public Criteria andBeginTimeIsNotNull() {
            addCriterion("begin_time is not null");
            return (Criteria) this;
        }

        public Criteria andBeginTimeEqualTo(Date value) {
            addCriterion("begin_time =", value, "beginTime");
            return (Criteria) this;
        }

        public Criteria andBeginTimeNotEqualTo(Date value) {
            addCriterion("begin_time <>", value, "beginTime");
            return (Criteria) this;
        }

        public Criteria andBeginTimeGreaterThan(Date value) {
            addCriterion("begin_time >", value, "beginTime");
            return (Criteria) this;
        }

        public Criteria andBeginTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("begin_time >=", value, "beginTime");
            return (Criteria) this;
        }

        public Criteria andBeginTimeLessThan(Date value) {
            addCriterion("begin_time <", value, "beginTime");
            return (Criteria) this;
        }

        public Criteria andBeginTimeLessThanOrEqualTo(Date value) {
            addCriterion("begin_time <=", value, "beginTime");
            return (Criteria) this;
        }

        public Criteria andBeginTimeIn(List<Date> values) {
            addCriterion("begin_time in", values, "beginTime");
            return (Criteria) this;
        }

        public Criteria andBeginTimeNotIn(List<Date> values) {
            addCriterion("begin_time not in", values, "beginTime");
            return (Criteria) this;
        }

        public Criteria andBeginTimeBetween(Date value1, Date value2) {
            addCriterion("begin_time between", value1, value2, "beginTime");
            return (Criteria) this;
        }

        public Criteria andBeginTimeNotBetween(Date value1, Date value2) {
            addCriterion("begin_time not between", value1, value2, "beginTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNull() {
            addCriterion("created_by is null");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNotNull() {
            addCriterion("created_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedByEqualTo(String value) {
            addCriterion("created_by =", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotEqualTo(String value) {
            addCriterion("created_by <>", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThan(String value) {
            addCriterion("created_by >", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
            addCriterion("created_by >=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThan(String value) {
            addCriterion("created_by <", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThanOrEqualTo(String value) {
            addCriterion("created_by <=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLike(String value) {
            addCriterion("created_by like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotLike(String value) {
            addCriterion("created_by not like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByIn(List<String> values) {
            addCriterion("created_by in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotIn(List<String> values) {
            addCriterion("created_by not in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByBetween(String value1, String value2) {
            addCriterion("created_by between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotBetween(String value1, String value2) {
            addCriterion("created_by not between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNull() {
            addCriterion("created_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNotNull() {
            addCriterion("created_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeEqualTo(Date value) {
            addCriterion("created_time =", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotEqualTo(Date value) {
            addCriterion("created_time <>", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThan(Date value) {
            addCriterion("created_time >", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("created_time >=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThan(Date value) {
            addCriterion("created_time <", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("created_time <=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIn(List<Date> values) {
            addCriterion("created_time in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotIn(List<Date> values) {
            addCriterion("created_time not in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeBetween(Date value1, Date value2) {
            addCriterion("created_time between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("created_time not between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNull() {
            addCriterion("last_updated_by is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNotNull() {
            addCriterion("last_updated_by is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByEqualTo(String value) {
            addCriterion("last_updated_by =", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotEqualTo(String value) {
            addCriterion("last_updated_by <>", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThan(String value) {
            addCriterion("last_updated_by >", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThanOrEqualTo(String value) {
            addCriterion("last_updated_by >=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThan(String value) {
            addCriterion("last_updated_by <", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThanOrEqualTo(String value) {
            addCriterion("last_updated_by <=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLike(String value) {
            addCriterion("last_updated_by like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotLike(String value) {
            addCriterion("last_updated_by not like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIn(List<String> values) {
            addCriterion("last_updated_by in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotIn(List<String> values) {
            addCriterion("last_updated_by not in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByBetween(String value1, String value2) {
            addCriterion("last_updated_by between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotBetween(String value1, String value2) {
            addCriterion("last_updated_by not between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNull() {
            addCriterion("last_updated_time is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNotNull() {
            addCriterion("last_updated_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeEqualTo(Date value) {
            addCriterion("last_updated_time =", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotEqualTo(Date value) {
            addCriterion("last_updated_time <>", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThan(Date value) {
            addCriterion("last_updated_time >", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("last_updated_time >=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThan(Date value) {
            addCriterion("last_updated_time <", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("last_updated_time <=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIn(List<Date> values) {
            addCriterion("last_updated_time in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotIn(List<Date> values) {
            addCriterion("last_updated_time not in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeBetween(Date value1, Date value2) {
            addCriterion("last_updated_time between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("last_updated_time not between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}